package com.zxw.flow.api;

import com.zxw.common.core.base.res.BasePageRes;
import com.zxw.common.core.base.res.BaseRes;
import com.zxw.flow.domain.dto.FlowTypeDTO;
import com.zxw.flow.domain.entity.FlowType;
import com.zxw.flow.domain.vo.FlowTypePageVO;
import com.zxw.flow.domain.vo.FlowTypeVO;
import org.springframework.web.bind.annotation.*;

/**
 * @author Xuewei.Zhang
 * @date 2022/7/4
 */
public interface FlowTypeApi {

    @GetMapping("/page")
    BasePageRes<FlowType> page(FlowTypePageVO flowTypePageVO);

    @GetMapping("/{flowTypeId}")
    BaseRes<FlowType> findFlowTypeById(@PathVariable("flowTypeId") Long flowTypeId);

    @PostMapping("/insert")
    BaseRes<FlowTypeVO> insertFlowType(@RequestBody FlowTypeVO flowTypeVO);

    @PutMapping("/update/{flowTypeId}")
    BaseRes updateFlowType(@PathVariable("flowTypeId") Long flowTypeId, @RequestBody FlowTypeVO flowTypeVO);

    @DeleteMapping("/{flowTypeIds}")
    BaseRes deleteFlowType(@PathVariable("flowTypeIds") String flowTypeIds);

}
